package cn.cdeden.knowledge.service;

import cn.cdeden.common.core.utils.page.TableDataInfo;
import cn.cdeden.knowledge.domain.SysUserPermissions;
import cn.cdeden.knowledge.domain.dto.SysUserPermissionsDto;
import cn.cdeden.knowledge.domain.dto.UserAuthorityDto;
import com.baomidou.mybatisplus.extension.service.IService;

import org.springframework.data.domain.Pageable;

import java.util.List;

public interface SysUserPermissionsService extends IService<SysUserPermissions>{

    TableDataInfo<UserAuthorityDto> getUserPermissions(Long id, String userName, Long permissionsId, Pageable pageable);

    Boolean updateBatchByScheduleId(Long scheduleId, Long permissionsId, List<Long> userIds);

    Boolean addByBatch(SysUserPermissionsDto sysUserPermissionsDto);
}
